package luafrontend.values;

import luafrontend.exceptions.ConversionException;

public class LuaNil extends LuaValue {
	public boolean isNil() {
		return true;
	}
	
	public LuaString asString() throws ConversionException {
		return new LuaString("nil");
	}
	
	@Override
	public String toString() {
		return "nil";
	}

	@Override
	public int hashCode() {
		throw new RuntimeException("Trying to get hash code of nil");
	}
}
